package com.imsprint.lib.observe;

public class ObserverManager {

    private static volatile Observable mObservable;


    /**
     *   创建单例模式用来管理观察者的注册
     * @return 返回 ObserverManager  对象
     */
    public static Observable getObservableInstance(){
        if(mObservable == null){
            synchronized (ObserverManager.class){
                if(mObservable == null){
                    mObservable = new Observable();
                }
            }
        }
        return mObservable;
    }







}